-- GENERATED SPELL FOR [Duriel Moonfire] --


function spell0_12860(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(11428,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12860', 2310, 1)
end

function spell1_12860(pUnit, Event) --@Pierce Armor,n/a--
pUnit:FullCastSpellOnTarget(12097,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12860', 20284, 1)
end

function Sorts_12860(pUnit, Event)
local choix_sorts_12860 = math.random(0, 1)
if choix_sorts_12860 == 0 then
pUnit:RegisterEvent('spell0_12860', 1, 1)
end
if choix_sorts_12860 == 1 then
pUnit:RegisterEvent('spell1_12860', 1, 1)
end
end

function mob12860_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12860', math.random(1500, 3000), 1)
end

function mob12860_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12860_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12860_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12860, 1, 'mob12860_Action')
RegisterUnitEvent(12860, 2, 'mob12860_Leave')
RegisterUnitEvent(12860, 3, 'mob12860_Kill')
RegisterUnitEvent(12860, 4, 'mob12860_Die')
